package com.iceland.server.util;

import com.iceland.common.rpc.RpcMessageManager;
import com.iceland.common.util.ChannelContext;
import com.iceland.server.server.cmd.CmdServer;
import com.iceland.server.server.proxy.ProxyServer;
import io.netty.channel.Channel;

public class ServerChannelContext extends ChannelContext {
    ProxyServer proxyServer;
    CmdServer clientServer;

    public ServerChannelContext(RpcMessageManager rpcMessageManager, Channel bindChannel, ProxyServer proxyServer, CmdServer clientServer) {
        super(rpcMessageManager, bindChannel);
        this.proxyServer = proxyServer;
        this.clientServer = clientServer;
    }



    public ProxyServer getProxyServer() {
        return proxyServer;
    }

    public void setProxyServer(ProxyServer proxyServer) {
        this.proxyServer = proxyServer;
    }

    public CmdServer getClientServer() {
        return clientServer;
    }

    public void setClientServer(CmdServer clientServer) {
        this.clientServer = clientServer;
    }
}
